package com.rms.domain;

import java.util.ArrayList;
import java.util.List;

public class Resume {

	private Integer id;

	private String path;
	
	private String fileName;

	private Integer workerId;

	private Worker worker;

	public String getFileName() {
		return fileName;
	}

	private List<ResumeJob> resumeJobs = new ArrayList<ResumeJob>();

	public List<ResumeJob> getResumeJobs() {
		return resumeJobs;
	}

	public void setResumeJobs(List<ResumeJob> resumeJobs) {
		this.resumeJobs = resumeJobs;
	}

	public Worker getWorker() {
		return worker;
	}

	public void setWorker(Worker worker) {
		this.worker = worker;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
		String[] paths = path.split("\\\\");
		fileName = paths[paths.length-1];
	}

	public Integer getWorkerId() {
		return workerId;
	}

	public void setWorkerId(Integer workerId) {
		this.workerId = workerId;
	}

	public Resume(String path, Integer workerId) {
		this.path = path;
		this.workerId = workerId;
	}

	public Resume() {
	}

	@Override
	public String toString() {
		return "Resume [id=" + id + ", path=" + path + ", workerId=" + workerId + "]";
	}

}